﻿// MianView.cpp: 实现文件
//

#include "pch.h"
#include "Wgdll.h"
#include "MianView.h"


// MianView 对话框

IMPLEMENT_DYNAMIC(MianView, CDialog)

MianView::MianView(CWnd* pParent /*=nullptr*/)
	: CDialog(IDD_MAINVIEW, pParent)
{

}

MianView::~MianView()
{
}

void MianView::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_MAINTAB, m_ctl_tab);
}


BEGIN_MESSAGE_MAP(MianView, CDialog)
END_MESSAGE_MAP()

BOOL MianView::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO:  在此添加额外的初始化
	m_ctl_tab.AddPage(__T("测试1"), &m_Page1, IDD_PAGE1);
	m_ctl_tab.AddPage(__T("测试2"), &m_Page2, IDD_PAGE2);
	m_ctl_tab.AddPage(__T("测试3"), &m_Page3, IDD_PAGE3);
	m_ctl_tab.AddPage(__T("测试4"), &m_Page4, IDD_PAGE4);
	m_ctl_tab.AddPage(__T("测试5"), &m_Page5, IDD_PAGE5);
	m_ctl_tab.AddPage(__T("测试6"), &m_Page6, IDD_PAGE6);
	m_ctl_tab.AddPage(__T("测试7"), &m_Page7, IDD_PAGE7);
	m_ctl_tab.AddPage(__T("测试8"), &m_Page8, IDD_PAGE8);

	m_ctl_tab.Show();

	return TRUE;  // return TRUE unless you set the focus to a control
				  // 异常: OCX 属性页应返回 FALSE
}
